#include <testngpp/internal/TestCase.h>
#include <testngpp/internal/TestFixtureDesc.h>
#include <testngpp/internal/TestSuiteDesc.h>
#include <testngpp/internal/DataDriven.h>
#include "TestRectangle.h"

static struct TESTCASE_TestRectangle_getArea_test_52
   : public TESTNGPP_NS::TestCase
{
   TESTCASE_TestRectangle_getArea_test_52()
      : TESTNGPP_NS::TestCase
        ( "Area of valid Rectangle should be right"
        , "Rectangle_getArea"
        , "TestRectangle"
        , 0
        , "TestRectangle.h"
        , 52)
   {}

   void setFixture(TESTNGPP_NS::TestFixture* fixture)
   {
      if(fixture == 0)
      {
         belongedFixture = new TestRectangle_getArea();
      }
      else
      {
         belongedFixture = dynamic_cast<TestRectangle_getArea*>(fixture);
      }
   }

   void runTest()
   {
      
belongedFixture->test_52()
;
   }

   TESTNGPP_NS::TestFixture* getFixture() const
   {
      return belongedFixture;
   }

   unsigned int numberOfTags() const
   {
      return 0;
   }

   const char** getTags() const
   {
      static const char* tags[] = {0};
      return tags;
   }

private:
   TestRectangle_getArea* belongedFixture;
} testcase_instance_TestRectangle_getArea_test_52 ;



static struct TESTCASE_TestRectangle_getArea_test_60
   : public TESTNGPP_NS::TestCase
{
   TESTCASE_TestRectangle_getArea_test_60()
      : TESTNGPP_NS::TestCase
        ( "Area of invalid Rectangle should be 0"
        , "Rectangle_getArea"
        , "TestRectangle"
        , 0
        , "TestRectangle.h"
        , 60)
   {}

   void setFixture(TESTNGPP_NS::TestFixture* fixture)
   {
      if(fixture == 0)
      {
         belongedFixture = new TestRectangle_getArea();
      }
      else
      {
         belongedFixture = dynamic_cast<TestRectangle_getArea*>(fixture);
      }
   }

   void runTest()
   {
      
belongedFixture->test_60()
;
   }

   TESTNGPP_NS::TestFixture* getFixture() const
   {
      return belongedFixture;
   }

   unsigned int numberOfTags() const
   {
      return 0;
   }

   const char** getTags() const
   {
      static const char* tags[] = {0};
      return tags;
   }

private:
   TestRectangle_getArea* belongedFixture;
} testcase_instance_TestRectangle_getArea_test_60 ;



static TESTNGPP_NS::TestCase* g_TESTCASEARRAY_TestRectangle_getArea[] = {
&testcase_instance_TestRectangle_getArea_test_52,
&testcase_instance_TestRectangle_getArea_test_60,
0
};




static struct TESTCASE_TestRectangle_getPerimeter_test_86
   : public TESTNGPP_NS::TestCase
{
   TESTCASE_TestRectangle_getPerimeter_test_86()
      : TESTNGPP_NS::TestCase
        ( "Perimeter of valid Rectangle should be right"
        , "Rectangle_getPerimeter"
        , "TestRectangle"
        , 0
        , "TestRectangle.h"
        , 86)
   {}

   void setFixture(TESTNGPP_NS::TestFixture* fixture)
   {
      if(fixture == 0)
      {
         belongedFixture = new TestRectangle_getPerimeter();
      }
      else
      {
         belongedFixture = dynamic_cast<TestRectangle_getPerimeter*>(fixture);
      }
   }

   void runTest()
   {
      
belongedFixture->test_86()
;
   }

   TESTNGPP_NS::TestFixture* getFixture() const
   {
      return belongedFixture;
   }

   unsigned int numberOfTags() const
   {
      return 0;
   }

   const char** getTags() const
   {
      static const char* tags[] = {0};
      return tags;
   }

private:
   TestRectangle_getPerimeter* belongedFixture;
} testcase_instance_TestRectangle_getPerimeter_test_86 ;



static struct TESTCASE_TestRectangle_getPerimeter_test_94
   : public TESTNGPP_NS::TestCase
{
   TESTCASE_TestRectangle_getPerimeter_test_94()
      : TESTNGPP_NS::TestCase
        ( "Perimeter of invalid Rectangle should be 0"
        , "Rectangle_getPerimeter"
        , "TestRectangle"
        , 0
        , "TestRectangle.h"
        , 94)
   {}

   void setFixture(TESTNGPP_NS::TestFixture* fixture)
   {
      if(fixture == 0)
      {
         belongedFixture = new TestRectangle_getPerimeter();
      }
      else
      {
         belongedFixture = dynamic_cast<TestRectangle_getPerimeter*>(fixture);
      }
   }

   void runTest()
   {
      
belongedFixture->test_94()
;
   }

   TESTNGPP_NS::TestFixture* getFixture() const
   {
      return belongedFixture;
   }

   unsigned int numberOfTags() const
   {
      return 0;
   }

   const char** getTags() const
   {
      static const char* tags[] = {0};
      return tags;
   }

private:
   TestRectangle_getPerimeter* belongedFixture;
} testcase_instance_TestRectangle_getPerimeter_test_94 ;



static TESTNGPP_NS::TestCase* g_TESTCASEARRAY_TestRectangle_getPerimeter[] = {
&testcase_instance_TestRectangle_getPerimeter_test_86,
&testcase_instance_TestRectangle_getPerimeter_test_94,
0
};




static struct TESTCASE_TestRectangle_isValid_test_112
   : public TESTNGPP_NS::TestCase
{
   TESTCASE_TestRectangle_isValid_test_112()
      : TESTNGPP_NS::TestCase
        ( "isValid of valid Rectangle should be true"
        , "Rectangle_isValid"
        , "TestRectangle"
        , 0
        , "TestRectangle.h"
        , 112)
   {}

   void setFixture(TESTNGPP_NS::TestFixture* fixture)
   {
      if(fixture == 0)
      {
         belongedFixture = new TestRectangle_isValid();
      }
      else
      {
         belongedFixture = dynamic_cast<TestRectangle_isValid*>(fixture);
      }
   }

   void runTest()
   {
      
belongedFixture->test_112()
;
   }

   TESTNGPP_NS::TestFixture* getFixture() const
   {
      return belongedFixture;
   }

   unsigned int numberOfTags() const
   {
      return 0;
   }

   const char** getTags() const
   {
      static const char* tags[] = {0};
      return tags;
   }

private:
   TestRectangle_isValid* belongedFixture;
} testcase_instance_TestRectangle_isValid_test_112 ;



static struct TESTCASE_TestRectangle_isValid_test_120
   : public TESTNGPP_NS::TestCase
{
   TESTCASE_TestRectangle_isValid_test_120()
      : TESTNGPP_NS::TestCase
        ( "isValid of invalid Rectangle should be false"
        , "Rectangle_isValid"
        , "TestRectangle"
        , 0
        , "TestRectangle.h"
        , 120)
   {}

   void setFixture(TESTNGPP_NS::TestFixture* fixture)
   {
      if(fixture == 0)
      {
         belongedFixture = new TestRectangle_isValid();
      }
      else
      {
         belongedFixture = dynamic_cast<TestRectangle_isValid*>(fixture);
      }
   }

   void runTest()
   {
      
belongedFixture->test_120()
;
   }

   TESTNGPP_NS::TestFixture* getFixture() const
   {
      return belongedFixture;
   }

   unsigned int numberOfTags() const
   {
      return 0;
   }

   const char** getTags() const
   {
      static const char* tags[] = {0};
      return tags;
   }

private:
   TestRectangle_isValid* belongedFixture;
} testcase_instance_TestRectangle_isValid_test_120 ;



static TESTNGPP_NS::TestCase* g_TESTCASEARRAY_TestRectangle_isValid[] = {
&testcase_instance_TestRectangle_isValid_test_112,
&testcase_instance_TestRectangle_isValid_test_120,
0
};




static struct TESTCASE_TestRectangle_changeLength_test_140
   : public TESTNGPP_NS::TestCase
{
   TESTCASE_TestRectangle_changeLength_test_140()
      : TESTNGPP_NS::TestCase
        ( "isValid of valid Rectangle should be true"
        , "Rectangle_changeLength"
        , "TestRectangle"
        , 0
        , "TestRectangle.h"
        , 140)
   {}

   void setFixture(TESTNGPP_NS::TestFixture* fixture)
   {
      if(fixture == 0)
      {
         belongedFixture = new TestRectangle_changeLength();
      }
      else
      {
         belongedFixture = dynamic_cast<TestRectangle_changeLength*>(fixture);
      }
   }

   void runTest()
   {
      
belongedFixture->test_140()
;
   }

   TESTNGPP_NS::TestFixture* getFixture() const
   {
      return belongedFixture;
   }

   unsigned int numberOfTags() const
   {
      return 0;
   }

   const char** getTags() const
   {
      static const char* tags[] = {0};
      return tags;
   }

private:
   TestRectangle_changeLength* belongedFixture;
} testcase_instance_TestRectangle_changeLength_test_140 ;



static struct TESTCASE_TestRectangle_changeLength_test_157
   : public TESTNGPP_NS::TestCase
{
   TESTCASE_TestRectangle_changeLength_test_157()
      : TESTNGPP_NS::TestCase
        ( "isValid of valid Rectangle should be true"
        , "Rectangle_changeLength"
        , "TestRectangle"
        , 0
        , "TestRectangle.h"
        , 157)
   {}

   void setFixture(TESTNGPP_NS::TestFixture* fixture)
   {
      if(fixture == 0)
      {
         belongedFixture = new TestRectangle_changeLength();
      }
      else
      {
         belongedFixture = dynamic_cast<TestRectangle_changeLength*>(fixture);
      }
   }

   void runTest()
   {
      
belongedFixture->test_157()
;
   }

   TESTNGPP_NS::TestFixture* getFixture() const
   {
      return belongedFixture;
   }

   unsigned int numberOfTags() const
   {
      return 0;
   }

   const char** getTags() const
   {
      static const char* tags[] = {0};
      return tags;
   }

private:
   TestRectangle_changeLength* belongedFixture;
} testcase_instance_TestRectangle_changeLength_test_157 ;



static TESTNGPP_NS::TestCase* g_TESTCASEARRAY_TestRectangle_changeLength[] = {
&testcase_instance_TestRectangle_changeLength_test_140,
&testcase_instance_TestRectangle_changeLength_test_157,
0
};




static struct TESTCASE_TestRectangle_changeWidth_test_183
   : public TESTNGPP_NS::TestCase
{
   TESTCASE_TestRectangle_changeWidth_test_183()
      : TESTNGPP_NS::TestCase
        ( "isValid of valid Rectangle should be true"
        , "Rectangle_changeWidth"
        , "TestRectangle"
        , 0
        , "TestRectangle.h"
        , 183)
   {}

   void setFixture(TESTNGPP_NS::TestFixture* fixture)
   {
      if(fixture == 0)
      {
         belongedFixture = new TestRectangle_changeWidth();
      }
      else
      {
         belongedFixture = dynamic_cast<TestRectangle_changeWidth*>(fixture);
      }
   }

   void runTest()
   {
      
belongedFixture->test_183()
;
   }

   TESTNGPP_NS::TestFixture* getFixture() const
   {
      return belongedFixture;
   }

   unsigned int numberOfTags() const
   {
      return 0;
   }

   const char** getTags() const
   {
      static const char* tags[] = {0};
      return tags;
   }

private:
   TestRectangle_changeWidth* belongedFixture;
} testcase_instance_TestRectangle_changeWidth_test_183 ;



static struct TESTCASE_TestRectangle_changeWidth_test_200
   : public TESTNGPP_NS::TestCase
{
   TESTCASE_TestRectangle_changeWidth_test_200()
      : TESTNGPP_NS::TestCase
        ( "isValid of valid Rectangle should be true"
        , "Rectangle_changeWidth"
        , "TestRectangle"
        , 0
        , "TestRectangle.h"
        , 200)
   {}

   void setFixture(TESTNGPP_NS::TestFixture* fixture)
   {
      if(fixture == 0)
      {
         belongedFixture = new TestRectangle_changeWidth();
      }
      else
      {
         belongedFixture = dynamic_cast<TestRectangle_changeWidth*>(fixture);
      }
   }

   void runTest()
   {
      
belongedFixture->test_200()
;
   }

   TESTNGPP_NS::TestFixture* getFixture() const
   {
      return belongedFixture;
   }

   unsigned int numberOfTags() const
   {
      return 0;
   }

   const char** getTags() const
   {
      static const char* tags[] = {0};
      return tags;
   }

private:
   TestRectangle_changeWidth* belongedFixture;
} testcase_instance_TestRectangle_changeWidth_test_200 ;



static TESTNGPP_NS::TestCase* g_TESTCASEARRAY_TestRectangle_changeWidth[] = {
&testcase_instance_TestRectangle_changeWidth_test_183,
&testcase_instance_TestRectangle_changeWidth_test_200,
0
};




/*static*/ TESTNGPP_NS::TestFixtureDesc test_fixture_desc_instance_TestRectangle_getArea
   ( "Rectangle_getArea"
   , "TestRectangle.h"
   , g_TESTCASEARRAY_TestRectangle_getArea
   , (sizeof(g_TESTCASEARRAY_TestRectangle_getArea)/sizeof(g_TESTCASEARRAY_TestRectangle_getArea[0])) - 1
   );



/*static*/ TESTNGPP_NS::TestFixtureDesc test_fixture_desc_instance_TestRectangle_getPerimeter
   ( "Rectangle_getPerimeter"
   , "TestRectangle.h"
   , g_TESTCASEARRAY_TestRectangle_getPerimeter
   , (sizeof(g_TESTCASEARRAY_TestRectangle_getPerimeter)/sizeof(g_TESTCASEARRAY_TestRectangle_getPerimeter[0])) - 1
   );



/*static*/ TESTNGPP_NS::TestFixtureDesc test_fixture_desc_instance_TestRectangle_isValid
   ( "Rectangle_isValid"
   , "TestRectangle.h"
   , g_TESTCASEARRAY_TestRectangle_isValid
   , (sizeof(g_TESTCASEARRAY_TestRectangle_isValid)/sizeof(g_TESTCASEARRAY_TestRectangle_isValid[0])) - 1
   );



/*static*/ TESTNGPP_NS::TestFixtureDesc test_fixture_desc_instance_TestRectangle_changeLength
   ( "Rectangle_changeLength"
   , "TestRectangle.h"
   , g_TESTCASEARRAY_TestRectangle_changeLength
   , (sizeof(g_TESTCASEARRAY_TestRectangle_changeLength)/sizeof(g_TESTCASEARRAY_TestRectangle_changeLength[0])) - 1
   );



/*static*/ TESTNGPP_NS::TestFixtureDesc test_fixture_desc_instance_TestRectangle_changeWidth
   ( "Rectangle_changeWidth"
   , "TestRectangle.h"
   , g_TESTCASEARRAY_TestRectangle_changeWidth
   , (sizeof(g_TESTCASEARRAY_TestRectangle_changeWidth)/sizeof(g_TESTCASEARRAY_TestRectangle_changeWidth[0])) - 1
   );



static TESTNGPP_NS::TestFixtureDesc* array_of_fixture_desc_TestRectangle[] = {
&test_fixture_desc_instance_TestRectangle_getArea,
&test_fixture_desc_instance_TestRectangle_getPerimeter,
&test_fixture_desc_instance_TestRectangle_isValid,
&test_fixture_desc_instance_TestRectangle_changeLength,
&test_fixture_desc_instance_TestRectangle_changeWidth,
0
};




static TESTNGPP_NS::TestSuiteDesc test_suite_desc_instance_TestRectangle
   ( "TestRectangle"
   , array_of_fixture_desc_TestRectangle
   , (sizeof(array_of_fixture_desc_TestRectangle)/sizeof(array_of_fixture_desc_TestRectangle[0])) - 1
   );



extern "C" DLL_EXPORT TESTNGPP_NS::TestSuiteDesc* ___testngpp_test_suite_desc_getter() {
   return &test_suite_desc_instance_TestRectangle;
}


